Gitlab has built-in support for junit reports, so switch eslint's
output to that format.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1497
variables:
BUNDLE: "extensions-git.flatpak"
JS_LOG: "js-report.txt"
- LINT_LOG: "eslint-report.txt"
+ LINT_LOG: "eslint-report.xml"
.only_default: &only_default
only:
stage: review
script:
- export NODE_PATH=$(npm root -g)
- - ./.gitlab-ci/run-eslint --output-file ${LINT_LOG}
+ - ./.gitlab-ci/run-eslint --output-file ${LINT_LOG} --format junit
<<: *only_default
artifacts:
- paths:
- - ${LINT_LOG}
+ reports:
+ junit: ${LINT_LOG}
when: always
potfile_check:
const results = await Promise.all(ops);
const commonResults = createCommon(...results, branch !== undefined);
- const formatter = await regular.loadFormatter();
+ const formatter = await regular.loadFormatter(getOption('--format', '-f'));
const resultText = formatter.format(commonResults);
if (outputPath) {